/*
 * @Author: 江舟 jijiangzhou@recycloud.cn
 * @Date: 2024-04-29 16:12:24
 * @LastEditors: 江舟 jijiangzhou@recycloud.cn
 * @LastEditTime: 2024-04-29 16:20:35
 * @FilePath: \vite-project\src\hooks\order\useOrderCalculte.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { useState } from 'react';

export default function useOrderCalculte() {
	// 反算
	const [calculateVisible, setCalculateVisible] = useState(false);
	const [total, setTotal] = useState(0);

	const handleOpenCalculate = () => {
		setCalculateVisible(true);
	};

	return {
		calculateVisible,
		setCalculateVisible,
		handleOpenCalculate,
		total,
		setTotal,
	};
}
